<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" href="/assets/manage.css" type="text/css" />
<title>会員詳細</title>
</head>
<body>
<h2>会員詳細</h2>
<? if(isset($message)) {?><?= $message; ?><? } ?>
<? if(isset($error)) {?><font color='red'><?= $error; ?></font><? } ?>
<form method="post" name="form1" action="/manage/member/detail/info/">
	会員ID<input type="text" name="member_id" value="<?= $member_id; ?>" size=6>
	<input type="submit" value="表示">
</form>
<br />
<? if(isset($detail)) { ?>
<table>
<tr><td>UUID</td><td><?= $detail['uuid']?></td></tr>
<tr><td>識別キー</td><td><?= $detail['identification']?></td></tr>
<tr><td>デバイストークン</td><td><?= substr($detail['devicetoken'],0,20)."..."; ?></td><td>
	<form method="post" name="form1" action="/manage/member/detail/">
	<input type="hidden" name="member_id" value="<?= $member_id; ?>">
	<input type="hidden" name="token" value="<?= $detail['devicetoken'] ?>" size=10>
	<input type="text" name="push" value="" size=10>
	<input type="submit" value="プッシュ送信">
	</form>
</td></tr>	
<tr><td>ステータス</td><td><?= $detail['member_status']?></td><td>
	<form method="post" name="form1" action="/manage/member/detail/">
	<input type="hidden" name="member_id" value="<?= $member_id; ?>">
	<input type="text" name="status" value="0" size=3>
	<input type="submit" value="変更"> 0:通常 9:退会
	</form>
</td></tr>	
<tr><td>所有ポイント</td><td><?= $detail['point_has']?></td><td>
	<form method="post" name="form1" action="/manage/member/detail/">
	<input type="hidden" name="member_id" value="<?= $member_id; ?>">
	<input type="text" name="point" value="0" size=3>
	<input type="submit" value="追加"> マイナス可
	</form>
</td></tr>	
<tr><td>IPアドレス</td><td><?= $detail['ip_address']?></td></tr>
<tr><td>インストール日</td><td><?= $detail['create_date']?></td></tr>
<tr><td>ログイン日</td><td><?= $detail['login_date']?></td></tr>
<tr><td>性別</td><td><?= $detail['sex']?></td><td>0:男 1:女</td></tr>
<tr><td>誕生日</td><td><?= $detail['birth_date']?></td></tr>
<tr><td>エリア</td><td><?= $detail['area']?></td><td><a href="http://homepage2.nifty.com/hotel_db/x0401.html">都道府県コード表</a> 99:海外</td></td></tr>
<tr><td>ポイント履歴</td><td><?= $detail['point_count']?>件</td><td><a href="/manage/member/point/<?= $member_id; ?>/">ポイント履歴一覧</a></td></tr>
<tr><td>リクエスト履歴</td><td><?= $detail['request_count']?>件</td><td><a href="/manage/member/request/<?= $member_id; ?>/">リクエスト履歴一覧</a></td></tr>
</table>
<? } ?>
</body>
</html>
